//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package ciicos.controller;

import ciicos.base.ActionResult;
import ciicos.base.NoDataSourceBind;
import ciicos.base.service.SysconfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.Map;
import org.apache.commons.collections4.map.HashedMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(
        tags = {"获取APP版本号"},
        value = "AppVersion"
)
@RestController
@RequestMapping({"/api/app"})
public class AppVersionController {
    @Autowired
    private SysconfigService sysconfigService;

    @NoDataSourceBind
    @ApiOperation("判断是否需要验证码")
    @GetMapping({"/Version"})
    public ActionResult getAppVersion() {
        String sysVersion = this.sysconfigService.getSysInfo().getSysVersion();
        Map<String, String> map = new HashedMap();
        map.put("sysVersion", sysVersion);
        return ActionResult.success(map);
    }
}
